home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / libelf / elf_getehdr.z / elf_getehdr
Encoding:
Text File  |  2002-10-03  |  4.5 KB  |  108 lines

  1. ELF_GETEHDR(3E)                                        Last changed: 1-8-99
  2.  
  3.  
  4. NNAAMMEE
  5.      eellff__ggeetteehhddrr, eellff3322__ggeetteehhddrr, eellff3322__nneewweehhddrr, eellff6644__ggeetteehhddrr,
  6.      eellff6644__nneewweehhddrr - Retrieves class-dependent object file header
  7.  
  8. SSYYNNOOPPSSIISS
  9.      cccc [_f_l_a_g ...] _f_i_l_e ...  --lleellff [_l_i_b_r_a_r_y ...]
  10.  
  11.      ##iinncclluuddee <<lliibbeellff..hh>>
  12.  
  13.      EEllff3322__EEhhddrr **eellff3322__ggeetteehhddrr((EEllff **eellff));;
  14.  
  15.      EEllff3322__EEhhddrr **eellff3322__nneewweehhddrr((EEllff **eellff));;
  16.  
  17.      EEllff6644__EEhhddrr **eellff6644__ggeetteehhddrr((EEllff **eellff));;
  18.  
  19.      EEllff6644__EEhhddrr **eellff6644__nneewweehhddrr((EEllff **eellff));;
  20.  
  21. IIMMPPLLEEMMEENNTTAATTIIOONN
  22.      IRIX systems
  23.  
  24. DDEESSCCRRIIPPTTIIOONN
  25.      For a 32-bit class file, eellff3322__ggeetteehhddrr returns a pointer to an ELF
  26.      header, if one is available for the ELF descriptor, eellff.  If no header
  27.      exists for the descriptor, eellff3322__nneewweehhddrr allocates a _c_l_e_a_n one, but it
  28.      otherwise behaves the same as eellff3322__ggeetteehhddrr.  It does not allocate a
  29.      new header if one already exists.  If no header exists (for
  30.      eellff__ggeetteehhddrr), one cannot be created (for eellff__nneewweehhddrr); if a system
  31.      error occurs, the file is not a 32-bit class file, or eellff is null,
  32.      both functions return a null pointer.
  33.  
  34.      For 64-bit class files, the 6644 version is applicable instead of the 3322
  35.      version of the functions.
  36.  
  37.      The header includes the following members:
  38.  
  39.      uunnssiiggnneedd cchhaarr     ee__iiddeenntt[[EEII__NNIIDDEENNTT]];;
  40.  
  41.      EEllff3322__HHaallff        ee__ttyyppee;;
  42.  
  43.      EEllff3322__HHaallff        ee__mmaacchhiinnee;;
  44.  
  45.      EEllff3322__WWoorrdd        ee__vveerrssiioonn;;
  46.  
  47.      EEllff3322__AAddddrr        ee__eennttrryy;;
  48.  
  49.      EEllff3322__OOffff         ee__pphhooffff;;
  50.  
  51.      EEllff3322__OOffff         ee__sshhooffff;;
  52.  
  53.      EEllff3322__WWoorrdd        ee__ffllaaggss;;
  54.  
  55.      EEllff3322__HHaallff        ee__eehhssiizzee;;
  56.  
  57.      EEllff3322__HHaallff        ee__pphheennttssiizzee;;
  58.  
  59.      EEllff3322__HHaallff        ee__pphhnnuumm;;
  60.  
  61.      EEllff3322__HHaallff        ee__sshheennttssiizzee;;
  62.  
  63.      EEllff3322__HHaallff        ee__sshhnnuumm;;
  64.  
  65.      EEllff3322__HHaallff        ee__sshhssttrrnnddxx;;
  66.  
  67.      For 64-bit class files, the following is applicable:
  68.  
  69.      uunnssiiggnneedd cchhaarr     ee__iiddeenntt[[EEII__NNIIDDEENNTT]];;
  70.  
  71.      EEllff6644__HHaallff        ee__ttyyppee;;
  72.  
  73.      EEllff6644__HHaallff        ee__mmaacchhiinnee;;
  74.  
  75.      EEllff6644__WWoorrdd        ee__vveerrssiioonn;;
  76.  
  77.      EEllff6644__AAddddrr        ee__eennttrryy;;
  78.  
  79.      EEllff6644__OOffff         ee__pphhooffff;;
  80.  
  81.      EEllff6644__OOffff         ee__sshhooffff;;
  82.  
  83.      EEllff6644__WWoorrdd        ee__ffllaaggss;;
  84.  
  85.      EEllff6644__HHaallff        ee__eehhssiizzee;;
  86.  
  87.      EEllff6644__HHaallff        ee__pphheennttssiizzee;;
  88.  
  89.      EEllff6644__HHaallff        ee__pphhnnuumm;;
  90.  
  91.      EEllff6644__HHaallff        ee__sshheennttssiizzee;;
  92.  
  93.      EEllff6644__HHaallff        ee__sshhnnuumm;;
  94.  
  95.      EEllff6644__HHaallff        ee__sshhssttrrnnddxx;;
  96.  
  97.      eellff3322__nneewweehhddrr automatically sets the EELLFF__FF__DDIIRRTTYY bit [see
  98.      eellff__ffllaagg(3E)].  A program may use eellff__ggeettiiddeenntt to inspect the
  99.      identification bytes from a file.
  100.  
  101.      The 64-bit class works in the same way.  In the previous description,
  102.      replace all instances of 32 with 64.
  103.  
  104. SSEEEE AALLSSOO
  105.      eellff(3E), eellff__bbeeggiinn(3E), eellff__ffllaagg(3E), eellff__ggeettiiddeenntt(3E)
  106.  
  107.      This man page is available only online.
  108.